dm: usb: xhci: Factor out common init/uninit
authorSimon Glass <[email protected]>
Wed, 25 Mar 2015 18:22:52 +0000 (12:22 -0600)
committerSimon Glass <[email protected]>
Sat, 18 Apr 2015 17:11:28 +0000 (11:11 -0600)
commit779d12639152988ad65ceedf4a38b823f80425a7
tree931f06a858ef499d530e79eb8ceaafbd89b1ec65
parent5dd75e3b4677b3262a69f7e5fefea77c86c7c0c7
dm: usb: xhci: Factor out common init/uninit

Since driver model will want to use most of the same code for XHCI init
and uninit, put it in a separate function.

Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Marek Vasut <[email protected]>
drivers/usb/host/xhci.c